//
// Created by wze-zero on 2024/9/10 010.
//
#include <iostream>

using namespace std;

int main() {
    int num, n = 0, m = 0;
    cin >> num;
    for (int i = 1; i < num + 1; ++i) {
        i % 2 == 0 ? m++ : n++;
    }
    cout << n << " " << m << endl;
    return 0;
}